﻿<Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:controls="clr-namespace:VMDS.GUIClient.Views"

      xmlns:VMDS_GUIClient_ViewModels="clr-namespace:VMDS.GUIClient.ViewModels" xmlns:Management="clr-namespace:VMDS.GUIClient.ViewModels.Management" x:Class="VMDS.GUIClient.Views.ManagementConsole"

      mc:Ignorable="d" 
      d:DesignHeight="496" d:DesignWidth="784"
	Title="ManagementConsole" Width="Auto" Loaded="Page_Loaded">
	<Page.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/VMDS.GUIClient;component/Views/ResourceDictionary1.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Page.Resources>
	<Page.DataContext>
		<Management:ManagementConsoleViewModel/>
	</Page.DataContext>

    <Grid x:Name="rootGrid">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.225*"/>
    		<ColumnDefinition Width="0.775*"/>
    	</Grid.ColumnDefinitions>

        <Rectangle Margin="5,5,5,0" Stroke="#FF121111" StrokeThickness="0.5" RadiusX="10" RadiusY="10" Height="291" VerticalAlignment="Top">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
        			<LinearGradientBrush.RelativeTransform>
        				<TransformGroup>
        					<ScaleTransform CenterY="0.5" CenterX="0.5"/>
        					<SkewTransform CenterY="0.5" CenterX="0.5"/>
        					<RotateTransform CenterY="0.5" CenterX="0.5"/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</LinearGradientBrush.RelativeTransform>
        			<GradientStop Color="#FF121111"/>
        			<GradientStop Offset="0.558"/>
        			<GradientStop Color="#FF121111" Offset="1"/>
        			<GradientStop Offset="0.494"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>

        <StackPanel Margin="5,8,8,8" VerticalAlignment="Top">
        	<Button Margin="10,10,10,0" Style="{DynamicResource GreenButton2}" Height="45" FontFamily="Segoe UI" Command="{Binding GoToVm, Mode=OneWay}" IsDefault="{Binding VmSelected, Mode=OneWay}">
        		<StackPanel Orientation="Horizontal" Margin="2,0">
        			<Image Margin="0,0,-7,0" Source="VMs/1.png" OpacityMask="White" Width="30"/>
        			<TextBlock Text="Виртуальные машины" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="0" FontSize="14.667" Width="111"/>
        		</StackPanel>
        	</Button>
        	<Button Margin="10,10,10,0" Style="{DynamicResource GreenButton2}" Height="45" FontFamily="Segoe UI" Command="{Binding GoToOs, Mode=OneWay}" IsDefault="{Binding OsSelected, Mode=OneWay}" FontSize="10.667">
        		<StackPanel Orientation="Horizontal" Margin="2,0">
        			<Image Margin="0,0,-5,0" Source="/VMDS.GUIClient;component/Views/Images/run.png" OpacityMask="White" Width="30"/>
        			<TextBlock Text="Операционные системы" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="0" FontSize="14.667" Width="111"/>
        		</StackPanel>
        	</Button>
        	<Button Margin="10,10,10,0" Style="{DynamicResource GreenButton2}" Height="45" FontFamily="Segoe UI" Command="{Binding GoToClients, Mode=OneWay}" IsDefault="{Binding ClientsSelected, Mode=OneWay}" FontSize="10.667">
        		<StackPanel Orientation="Horizontal" Margin="2,0">
        			<Image Margin="0,0,-5,0" Source="VMs/vmware.png" OpacityMask="White" Width="30"/>
        			<TextBlock Text="Целевые компьютеры" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="0" FontSize="14.667" Width="111"/>
        		</StackPanel>
        	</Button>
        	<Button Margin="10,10,10,0" Style="{DynamicResource GreenButton2}" Height="45" FontFamily="Segoe UI" Command="{Binding GoToTask, Mode=OneWay}" IsDefault="{Binding TaskSelected, Mode=OneWay}" FontSize="10.667">
        		<StackPanel Orientation="Horizontal" Margin="2,0">
        			<Image Margin="0,0,-5,0" Source="/VMDS.GUIClient;component/Views/Images/setup.ico" OpacityMask="White" Width="30"/>
        			<TextBlock Text="Управление заданиями" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="0" FontSize="14.667" Width="111"/>
        		</StackPanel>
        	</Button>
        	<Button Margin="10,10,10,0" Style="{DynamicResource GreenButton2}" Height="45" FontFamily="Segoe UI" Command="{Binding GoToSubjects, Mode=OneWay}" IsDefault="{Binding SubjectsSelected, Mode=OneWay}" FontSize="10.667">
        		<StackPanel Orientation="Horizontal" Margin="2,0">
        			<Image Margin="0,0,-10,0" Source="/VMDS.GUIClient;component/Views/Images/book_48.png" OpacityMask="White" Width="38" Height="35" Stretch="Fill"/>
        			<TextBlock Text="Учебные дисциплины" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="0" FontSize="14.667" Width="111"/>
        		</StackPanel>
        	</Button>
        </StackPanel>
    	<Frame Content="" Grid.Column="1" Margin="0" NavigationUIVisibility="Hidden" Source="{Binding NavigationLink}" BorderThickness="2,0,0,0"/>
        <controls:MyModalDialog x:Name="ModalDialog" Grid.ColumnSpan="2" Visibility="Hidden" >
        	<controls:MyModalDialog.DataContext>
        		<VMDS_GUIClient_ViewModels:ConnectionDialog/>
        	</controls:MyModalDialog.DataContext>
        </controls:MyModalDialog>
    </Grid>
</Page>
